package com.ych.abstractFactory;

/**
 *抽象工厂，用于管理要实例化哪些对象
 * @author Administrator
 *
 */
public class AnimalFactory implements IAnimalFactory {

	@Override
	public ICat createCat() {
		return new BlackCat();
	}

	@Override
	public IDog createDog() {
		return new WhiteDog();
	}

}
